package com.mer.statistic.controller;

import com.mer.statistic.entity.Order;
import com.mer.statistic.service.OrderService;
import com.mer.statistic.utils.Result;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: iiphase-project-master
 * @description:
 * @author: 薛宁宁
 * @create: 2021-10-18 22:11
 **/

@RestController
@RequestMapping("/statistics/order")
@Api(tags = "每日销售金额")
@CrossOrigin
public class OrderController {
    @Resource
    private OrderService orderService;
    @PostMapping("/queryByOrder")
    public Result queryByOrder(@RequestBody Order order){
        Result commonResult = orderService.queryByOrder(order);
        System.out.println("订单查询的费用"+commonResult);
        return commonResult;
    }
}
